package com.syj.usepagehelper.mapper;

import com.syj.usepagehelper.model.vo.request.PageRequest;
import com.syj.usepagehelper.model.vo.response.QueryResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


import java.util.List;

/**
 * @ClassName : QueryMapper
 * @Description : 工作流相关接口
 * @Author : 石蕴杰
 * @Date: 2020-05-13 13:57
 */
@Mapper
public interface QueryMapper {
    /**
     * 根据userId查询对应的二级部门经理
     * @return
     */
    @Select("<script>select * from A left join B on a.id=b.a_id where instr(a.id,#{id,jdbcType=VARCHAR})&gt;0</script>")
    List<QueryResponse> query(PageRequest pageRequest);

}
